package cn.ll.po;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Item entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "item", catalog = "lldb")
public class Item implements java.io.Serializable {

	// Fields

	private Integer id;
	private String contractid;
	private String taskid;
	private Date createtime;
	private String createid;
	private String type;
	private String subtype;
	private Float cost;
	private String costtype;
	private String rootid;
	private Integer amount;
	private Float totalCostRmb;
	private Float subtotal;

	// Constructors

	/** default constructor */
	public Item() {
	}

	/** minimal constructor */
	public Item(Date createtime) {
		this.createtime = createtime;
	}

	/** full constructor */
	public Item(String contractid, String taskid, Date createtime, String createid, String type, String subtype,
			Float cost, String costtype, String rootid, Integer amount, Float totalCostRmb, Float subtotal) {
		this.contractid = contractid;
		this.taskid = taskid;
		this.createtime = createtime;
		this.createid = createid;
		this.type = type;
		this.subtype = subtype;
		this.cost = cost;
		this.costtype = costtype;
		this.rootid = rootid;
		this.amount = amount;
		this.totalCostRmb = totalCostRmb;
		this.subtotal = subtotal;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "contractid", length = 36)
	public String getContractid() {
		return this.contractid;
	}

	public void setContractid(String contractid) {
		this.contractid = contractid;
	}

	@Column(name = "taskid", length = 36)
	public String getTaskid() {
		return this.taskid;
	}

	public void setTaskid(String taskid) {
		this.taskid = taskid;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "createtime", nullable = false, length = 0)
	public Date getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	@Column(name = "createid", length = 36)
	public String getCreateid() {
		return this.createid;
	}

	public void setCreateid(String createid) {
		this.createid = createid;
	}

	@Column(name = "type", length = 150)
	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Column(name = "subtype", length = 150)
	public String getSubtype() {
		return this.subtype;
	}

	public void setSubtype(String subtype) {
		this.subtype = subtype;
	}

	@Column(name = "cost", precision = 12, scale = 0)
	public Float getCost() {
		return this.cost;
	}

	public void setCost(Float cost) {
		this.cost = cost;
	}

	@Column(name = "costtype", length = 150)
	public String getCosttype() {
		return this.costtype;
	}

	public void setCosttype(String costtype) {
		this.costtype = costtype;
	}

	@Column(name = "rootid", length = 36)
	public String getRootid() {
		return this.rootid;
	}

	public void setRootid(String rootid) {
		this.rootid = rootid;
	}

	@Column(name = "amount")
	public Integer getAmount() {
		return this.amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	@Column(name = "total_cost_rmb", precision = 12, scale = 0)
	public Float getTotalCostRmb() {
		return this.totalCostRmb;
	}

	public void setTotalCostRmb(Float totalCostRmb) {
		this.totalCostRmb = totalCostRmb;
	}

	@Column(name = "subtotal", precision = 12, scale = 0)
	public Float getSubtotal() {
		return this.subtotal;
	}

	public void setSubtotal(Float subtotal) {
		this.subtotal = subtotal;
	}

}